﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.WmsManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.WmsManagement.MaterialStoreVMs
{
    public partial class MaterialStoreBatchVM : BaseBatchVM<MaterialStore, MaterialStore_BatchEdit>
    {
        public MaterialStoreBatchVM()
        {
            ListVM = new MaterialStoreListVM();
            LinkedVM = new MaterialStore_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MaterialStore_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MaterialStore._Material")]
        public long? MaterialId { get; set; }
        [Display(Name = "_Model._MaterialStore._MinStore")]
        public decimal? MinStore { get; set; }
        [Display(Name = "_Model._MaterialStore._StoreQty")]
        public decimal? StoreQty { get; set; }
        [Display(Name = "_Model._MaterialStore._MaxStore")]
        public decimal? MaxStore { get; set; }
        [Display(Name = "_Model._MaterialStore._Expiration")]
        public decimal? Expiration { get; set; }
        [Display(Name = "_Model._MaterialStore._LastInBatch")]
        public string LastInBatch { get; set; }
        [Display(Name = "_Model._MaterialStore._LastInStoreTime")]
        public DateTime? LastInStoreTime { get; set; }
        [Display(Name = "_Model._MaterialStore._LastOutStoreTime")]
        public decimal? LastOutStoreTime { get; set; }
        [Display(Name = "_Model._MaterialStore._Pos")]
        public string Pos { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}